package day01;

/**
 * <equals ==>
 * <day01>
 *
 * @Author WANG.SONG.
 * @Date 2019/2/23 0023 23:17
 * @see
 */
public class Equals {


    public static void main(String[] args) {
        Equals t1 =new Equals();
        Equals t2 =new Equals();
        System.out.println(t1 == t2);
        System.out.println(t1.equals(t2));

        String a=new String("abc");
        String b=new String("abc");
        System.out.println(a.equals(b));
        String e = "abc";
        String f = "a"+"bc";
        System.out.println(e ==f);

    }
}
